<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
    
     <div class="container-div">
		<div class="row">
			<div class="col-sm-12 search-collapse">
				<form id="formId">
					<div class="select-list">
						<ul>
							<li>
								接口编码：<input type="text" name="apiCode"/>
							</li>

							<li>
								参数名称：<input type="text" name="paramName"/>
							</li>

							<li>
								参数字典标识：<input type="text" name="paramCodeKey"/>
							</li>

							<li>
								参数描述：<input type="text" name="paramDesc"/>
							</li>

							<li>
								是否需要校验：<input type="text" name="nullAble"/>
							</li>

							<li>
								是否使用：<input type="text" name="enable"/>
							</li>

							<li>
								是否需要保存数据：<input type="text" name="isSave"/>
							</li>

							<li>
								IN,入;OUT,出：<input type="text" name="isOrgin"/>
							</li>

							<li>
								事件：<input type="text" name="scene"/>
							</li>

							<li>
								创建时间：<input type="text" name="gmtCreate"/>
							</li>

							<li>
								修改时间：<input type="text" name="gmtModified"/>
							</li>

							<li>
								该信息是否从渠道获取,如招行需要每天更新密钥信息：<input type="text" name="isChannelTrans"/>
							</li>

							<li>
								是用哪个交互编码查询到的数据：<input type="text" name="transCode"/>
							</li>

							<li>
								扩展信息：<input type="text" name="extension"/>
							</li>

							<li>
								<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
								<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
							</li>
						</ul>
					</div>
				</form>
			</div>
			
	        <div class="btn-group-sm hidden-xs" id="toolbar" role="group">
				<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="paychannel:tmFundChannelApiParam:add">
					<i class="fa fa-plus"></i> 添加
				</a>
				<a class="btn btn-primary btn-edit disabled" onclick="$.operate.edit()" shiro:hasPermission="paychannel:tmFundChannelApiParam:edit">
					<i class="fa fa-edit"></i> 修改
				</a>
				<a class="btn btn-danger btn-del btn-del disabled" onclick="$.operate.removeAll()" shiro:hasPermission="paychannel:tmFundChannelApiParam:remove">
					<i class="fa fa-remove"></i> 删除
				</a>
				<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="paychannel:tmFundChannelApiParam:export">
						<i class="fa fa-download"></i> 导出
				 </a>
			</div>
			<div class="col-sm-12 select-table table-striped">
				<table id="bootstrap-table" data-mobile-responsive="true"></table>
			</div>
		</div>
	</div>
    <div th:include="include :: footer"></div>
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('paychannel:tmFundChannelApiParam:edit')}]];
        var removeFlag = [[${@permission.hasPermi('paychannel:tmFundChannelApiParam:remove')}]];
        var prefix = ctx + "paychannel/tmFundChannelApiParam";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
				exportUrl: prefix + "/export",
                modalName: "渠道接口参数",
		        showExport: true,
                columns: [{
		            checkbox: true
		        },
				{
					field : 'paramId', 
					title : '主键ID',
					visible: false
				},
				{
					field : 'apiCode', 
					title : '接口编码',
					sortable: true
				},
				{
					field : 'paramName', 
					title : '参数名称',
					sortable: true
				},
				{
					field : 'paramCodeKey', 
					title : '参数字典标识',
					sortable: true
				},
				{
					field : 'paramDesc', 
					title : '参数描述',
					sortable: true
				},
				{
					field : 'nullAble', 
					title : '是否需要校验',
					sortable: true
				},
				{
					field : 'enable', 
					title : '是否使用',
					sortable: true
				},
				{
					field : 'isSave', 
					title : '是否需要保存数据',
					sortable: true
				},
				{
					field : 'isOrgin', 
					title : 'IN,入;OUT,出',
					sortable: true
				},
				{
					field : 'scene', 
					title : '事件',
					sortable: true
				},
				{
					field : 'gmtCreate', 
					title : '创建时间',
					sortable: true
				},
				{
					field : 'gmtModified', 
					title : '修改时间',
					sortable: true
				},
				{
					field : 'isChannelTrans', 
					title : '该信息是否从渠道获取,如招行需要每天更新密钥信息',
					sortable: true
				},
				{
					field : 'transCode', 
					title : '是用哪个交互编码查询到的数据',
					sortable: true
				},
				{
					field : 'extension', 
					title : '扩展信息',
					sortable: true
				},
		        {
		            title: '操作',
		            align: 'center',
		            formatter: function(value, row, index) {
		            	var actions = [];
		            	actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="#" onclick="$.operate.edit(\'' + row.paramId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="#" onclick="$.operate.remove(\'' + row.paramId + '\')"><i class="fa fa-remove"></i>删除</a>');
						return actions.join('');
		            }
		        }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>